﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace WindowsEventLog
{
    public static class WindowsEventLogging
    {
        private static string source = "Kofax Clustering Utility for KTM";
        private static string logName = "Application";

        public static void WriteLog(string logContent, EventLogEntryType entryType)
        {
            if (!EventLog.SourceExists(source))
                EventLog.CreateEventSource(source, logName);

            EventLog.WriteEntry(source, logContent, entryType);
        }
    }
}
